<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('comment', function (Blueprint $table) {
            $table->id();
            $table->integer('task_id')->comment('主任务ID');
            $table->integer('subtask_id')->comment('子任务ID');
            $table->string('nickname',50)->comment('昵称');
            $table->tinyInteger('is_video')->comment('0 否 1是视屏号');
            $table->string('comment',50)->comment('评论');

            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('comment');
    }
};
